import { createRouter,createWebHistory } from "vue-router";

const router = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/',
            redirect:'/userFB'
        },
        {
            path:'/',
            name:'index',
            component:()=>import('../views/index.vue'),
            children:[
                {
                    path:'/userFB',
                    name:'userFB',
                    component:()=>import('../components/userFB.vue')
                },
                {
                    path:'/userJQ',
                    name:'userJQ',
                    component:()=>import('../components/userJQ.vue')
                },
                {
                    path:'/userData',
                    name:'userData',
                    component:()=>import('../components/userData.vue')
                },
                {
                    path:'/userVip',
                    name:'userVip',
                    component:()=>import('../components/userVip.vue')
                },
                {
                    path:'/FB',
                    name:'FB',
                    component:()=>import('../components/FB.vue')
                },
                {
                    path:'/finishFB',
                    name:'finishFB',
                    component:()=>import('../components/finishFB.vue')
                },
                {
                    path:'/ann',
                    name:'ann',
                    component:()=>import('../components/ann.vue')
                },
            ]
        }
    ]
})

export default router